<style>
    .input-group .input-group-addon{background-color:#eee}
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-2 col-sm-2">{:__('Item_no')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-item_no" data-rule="" class="form-control" name="row[item_no]" type="text" placeholder="自动生成" readonly>
        </div>
        <label class="control-label col-xs-12 col-sm-2">{:__('Fee')}:</label>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <input id="c-fee" data-rule="required" class="form-control" name="row[fee]" type="number">
                <div class="input-group-addon">元</div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-2 col-sm-2">{:__('Buyer_name')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-buyer_name" data-rule="required" class="form-control" name="row[buyer_name]" type="text">
        </div>
        <label class="control-label col-xs-2 col-sm-2">{:__('Buyer_mobile')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-buyer_mobile" data-rule="required" class="form-control" name="row[buyer_mobile]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-2 col-sm-2">{:__('Seller_name')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-seller_name" data-rule="required" class="form-control" name="row[seller_name]" type="text">
        </div>
        <label class="control-label col-xs-2 col-sm-2">{:__('Seller_mobile')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-seller_name" data-rule="required" class="form-control" name="row[seller_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-10">
            <input id="c-address" data-rule="" class="form-control" name="row[address]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Total_price')}:</label>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <input id="c-total_price" data-rule="required" class="form-control" name="row[total_price]" type="number">
                <div class="input-group-addon">万</div>
            </div>
        </div>
        <label class="control-label col-xs-12 col-sm-2">{:__('Area')}:</label>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <input id="c-area" data-rule="required" class="form-control" name="row[area]" type="number">
                <div class="input-group-addon">平</div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Loan_fee')}:</label>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <input id="c-loan_fee" data-rule="required" class="form-control" name="row[loan_fee]" type="number">
                <div class="input-group-addon">万</div>
            </div>
        </div>
        <label class="control-label col-xs-12 col-sm-2">{:__('Down_payment')}:</label>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <input id="c-down_payment" data-rule="required" class="form-control" name="row[down_payment]" type="number">
                <div class="input-group-addon">万</div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sign_bank')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-sign_bank" data-rule="required" data-source="cert/loan/bank" class="form-control selectpage" data-field="bank_name"  data-primary-key="bank_id" name="row[sign_bank]" type="text" value="">
        </div>
        <label class="control-label col-xs-12 col-sm-2">{:__('Sign_date')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-sign_date" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[sign_date]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Assessment')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-assessment" data-rule="required" data-source="cert/loan/assessment" class="form-control selectpage" data-field="assessment_name" data-primary-key="assessment_id" name="row[assessment]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mortage_date')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-mortage_date" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[mortage_date]" type="text" value="{:date('Y-m-d')}">
        </div>
        <label class="control-label col-xs-12 col-sm-2">{:__('Make_load_date')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-make_loan_date" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[make_loan_date]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mem')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mem" data-rule="" class="form-control" name="row[mem]" type="text">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
